package com.tengfei.main.plan.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tengfei.common.core.mapper.BaseMapperPlus;
import com.tengfei.main.plan.domain.Plan;
import com.tengfei.main.plan.domain.vo.PlanUsersVo;
import com.tengfei.main.plan.domain.vo.PlanVo;
import com.tengfei.main.system.domain.SysUser;
import org.apache.ibatis.annotations.Param;


/**
 * 学习计划Mapper接口
 *
 * @author tengfei
 * @date 2022-08-01
 */
public interface PlanMapper extends BaseMapperPlus<PlanMapper, Plan, PlanVo> {
    Page<PlanUsersVo> selectPlanUserList(@Param("page") Page<PlanUsersVo> build, @Param(Constants.WRAPPER) Wrapper<SysUser> buildQueryWrapper);

    Page<PlanUsersVo> selectPlanUserListUnBind(@Param("page") Page<PlanUsersVo> build, @Param(Constants.WRAPPER) Wrapper<SysUser> buildQueryWrapperUser, @Param("planId") Long planId);
}
